<?php

		if (isset($_GET['createAccount']))
		{
			$AccName = $_GET['accName'];
			$AccPass = $_GET['password'];
			$result = putAccount($AccName,$AccPass,$_SESSION['userName'],$_SESSION['userPassHash'], null);
			//$arraySize = sizeOf($result);
			//for ($i = 0; $i < $arraySize; $i++) { 
			//echo $result[$i] ;
			//} 
		}
echo '
<form action="template.php">
            <label>
                Account Name: 
            <input id="accName" type="text" name="accName" placeholder="Account name" required="required" />
                (Please Enter account name) 
            </label>
        </p>
        <p>
            <label>
                password: 
            <input id="password" name="password" type="password"  required="required" />
                (Please Enter temporary password)
            </label>
        </p>
        <input type="submit" name="createAccount" value="Send" />
        <input type="reset" value="reset" />

    </form>';
?>